From 04dbb22e89c0e5f947e509d4728354923082264a Mon Sep 17 00:00:00 2001 From: Daniel Kiper Date: Thu, 23 Oct 2014 10:22:52 +0200 Subject: [PATCH] x86/boot: add memory to clobber list in reloc_mbi_struct() Assembly inline in reloc_mbi_struct() clobbers memory so tell compiler about that. Signed-off-by: Daniel Kiper Reviewed-by: Andrew Cooper --- xen/arch/x86/boot/reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/boot/reloc.c b/xen/arch/x86/boot/reloc.c index 4609e55625..f9719205a4 100644 --- a/xen/arch/x86/boot/reloc.c +++ b/xen/arch/x86/boot/reloc.c @@ -46,7 +46,7 @@ static void *reloc_mbi_struct(void *old, unsigned int bytes) " mov %0,%%edi \n" " rep movsb \n" : "=&r" (new), "+c" (bytes), "+S" (old) - : : "edx", "edi"); + : : "edx", "edi", "memory"); return new; } -- 2.30.2